package com.gm.commonlib.application;

import android.content.Context;


public class MyApplicationHolder {
    private static MyApplicationInterface mInstance;

    public interface MyApplicationInterface  {
        Context getContext();
        String getBaseUrl();
        void login(int code);

    }

    public static void init(MyApplicationInterface instance) {
        mInstance = instance;
    }

    public static MyApplicationInterface getApplication() {
        return mInstance;
    }

    public static void  clear(){
        mInstance=null;
    }
}
